//
//  Request.h
//  iFlower
//
//  Created by thohd on 7/23/10.
//  Copyright 2010 iNIL.me. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSString * const kCategoryPattern;

@class User;
@class Order;
@class Address;
@interface Request : NSObject {
	NSMutableData* json_;
	NSURLConnection* connection_;
	NSMutableArray* entries_;
}

@property (nonatomic,readonly) NSArray* entries;

+ (Request *)sharedRequest;

- (void) getFlowerByCategory: (NSInteger)catId;
- (void) getCountryList;
- (void) getProductInfo:(NSString*)productId;
- (void) login:(User*)user;
- (void) logout;
- (void) getAddressBooks:(User*)user;
- (void) registerUser:(User*)user;
- (void) saveOrder:(Order*)order;
- (void) addAddress:(Address*) address user:(User*)user;
- (void) listCountry;
- (void) getCategoryList;
@end
